package cn.dcpnet.pojo;

import cn.dcpnet.IDFeignRequest;
import lombok.Data;

/**
 * @author: 代国平
 * @since: 2025/1/7 16:47
 */
@Data
public class RequestDto<T> implements IDFeignRequest<T> {

    private String id;

    private Long timestamp;

    private T data;

    public RequestDto(String id, T data) {
        this.id = id;
        this.data = data;
        this.timestamp = System.currentTimeMillis();
    }

    public RequestDto() {
    }
}
